package pers.zh.parking.di.component;

import dagger.BindsInstance;
import dagger.Component;
import com.jess.arms.di.component.AppComponent;

import pers.zh.parking.di.module.MapModule;
import pers.zh.parking.mvp.contract.MapContract;

import com.jess.arms.di.scope.ActivityScope;
import pers.zh.parking.mvp.ui.activity.MapActivity;

@ActivityScope
@Component(modules = MapModule.class, dependencies = AppComponent.class)
public interface MapComponent {
	void inject(MapActivity activity);

	@Component.Builder
	interface Builder {
		@BindsInstance
		MapComponent.Builder view(MapContract.View view);

		MapComponent.Builder appComponent(AppComponent appComponent);

		MapComponent build();
	}
}